﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.PlanningManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PlanningManagement.ProductionPlanningVMs
{
    public partial class ProductionPlanningTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProductionPlanning._Wo")]
        public ExcelPropety Wo_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.Wo);
        [Display(Name = "_Model._ProductionPlanning._Sort")]
        public ExcelPropety Sort_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.Sort);
        [Display(Name = "_Model._ProductionPlanning._LineId")]
        public ExcelPropety LineId_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.LineId);
        [Display(Name = "_Model._ProductionPlanning._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.LineCode);
        [Display(Name = "_Model._ProductionPlanning._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.ProductId);
        [Display(Name = "_Model._ProductionPlanning._ProductName")]
        public ExcelPropety ProductName_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.ProductName);
        [Display(Name = "_Model._ProductionPlanning._PlanStartTime")]
        public ExcelPropety PlanStartTime_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.PlanStartTime, true);
        [Display(Name = "_Model._ProductionPlanning._PlanEndTime")]
        public ExcelPropety PlanEndTime_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.PlanEndTime, true);
        [Display(Name = "_Model._ProductionPlanning._PlanQty")]
        public ExcelPropety PlanQty_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.PlanQty);
        [Display(Name = "_Model._ProductionPlanning._ProductCode")]
        public ExcelPropety ProductCode_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.ProductCode);
        [Display(Name = "_Model._ProductionPlanning._PlanStatus")]
        public ExcelPropety PlanStatus_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.PlanStatus);
        [Display(Name = "_Model._ProductionPlanning._ShiftId")]
        public ExcelPropety ShiftId_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.ShiftId);
        [Display(Name = "_Model._ProductionPlanning._ShiftCode")]
        public ExcelPropety ShiftCode_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.ShiftCode);
        [Display(Name = "_Model._ProductionPlanning._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.CreateTime, true);
        [Display(Name = "_Model._ProductionPlanning._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ProductionPlanning._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.CreateBy);
        [Display(Name = "_Model._ProductionPlanning._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.UpdateBy);
        [Display(Name = "_Model._ProductionPlanning._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.IsValid);
        [Display(Name = "_Model._ProductionPlanning._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ProductionPlanning>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProductionPlanningImportVM : BaseImportVM<ProductionPlanningTemplateVM, ProductionPlanning>
    {
            //import

    }

}